package org.nix.entity;

import org.nix.entity.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Create by zhangpe0312@qq.com on 2018/4/19.
 */
@Entity
@Table(name = "User")
public class User extends BaseEntity {

    private String userName;

    private String password;

    @Column(name = "userName" , unique = true , length = 20)
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    @Column(name = "password" , length = 20)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
